<template>
  <div class="bottomleft">
    <div
      class="bottomleft-all"
      @click="goGame(newList[index + 5].giId)"
      v-for="(item, index) in 3"
      :key="index"
    >
      <div class="stopimg">
        <img :src="newList[index + 5].giBackdrop" alt="" />
      </div>
      <div class="snewb-bottom">
        <div class="sone-img">
          <img :src="newList[index + 5].giLogo" alt="" />
        </div>

        <div class="snewb-text">
          <div>{{ newList[index + 5].giName }}</div>
          <div>{{ newList[index + 5].giIntroduce }}</div>
        </div>

        <div class="bottom-message">
          <div class="bottomessageone">{{ newList[index + 5].giScore }}</div>
          <div>
            <xing :giScore="newList[index + 5].giScore"></xing>

            <div class="bottom-ren" v-if="newList[index + 5].countNum == ''">
              {{ newList[index + 5].countNum }}人评分
            </div>
            <div class="bottom-ren" v-else>暂无人评分</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Xing from "../../../components/ximg/Xing.vue";
export default {
  components: { Xing },
  name: "BottomLeft",
  props: {
    newList: {
      type: Array,
    },
  },
  methods: {
    goGame(id) {
      this.$router.push({ name: "详情", params: { id: id } });
    },
  },
};
</script>

<style>
.bottomleft {
  width: 70%;
}

.bottomleft-all {
  margin-top: 0.2rem;
  cursor: pointer;
}

.bottomleft-all:hover .stopimg > img {
  transform: scale(1.2);
  border-radius: 0.07rem 0.07rem 0 0;
}

.stopimg {
  width: 100%;
  height: 1.85rem;
  overflow: hidden;
  border-radius: 0.07rem 0.07rem 0 0;
}

.stopimg img {
  width: 100%;
  height: 100%;
  border-radius: 0.07rem 0.07rem 0 0;
  transition: all 0.5s;
}

.snewb-bottom {
  display: flex;
  align-items: center;
  border: 1px solid rgb(216, 215, 214);
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  border-radius: 0px 0px 0.07rem 0.07rem;
}

.sone-img {
  flex: 1;
}

.sone-img img {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 0.1rem;
  margin-left: 0.2rem;
}

.snewb-text {
  flex: 4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snewb-text div:nth-child(1) {
  font-size: 0.15rem;
}

.snewb-text div:nth-child(2) {
  font-size: 0.09rem;
  margin-top: 0.05rem;
}

.bottom-message {
  display: flex;
  align-items: center;
  flex: 1.5;
}

.bottomessageone {
  font-size: 0.2rem;
  margin-right: 0.1rem;
}

.bottom-message img {
  width: 0.13rem;
  height: 0.13rem;
}

.bottom-ren {
  color: rgb(169, 171, 173);
}
</style>